<?php

use app\admin\middleware\Token;
use think\facade\Route;

Route::post('user/register', 'app\admin\controller\User@register')->allowCrossDomain();

Route::group('user', function () {
    Route::post('list', 'app\admin\controller\User@list');
})->allowCrossDomain()->middleware(Token::class);

